package com.shh.rabbitmq.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicDuanxinConsumer {

		@RabbitHandler
		@RabbitListener(queues = {"duanxin.topic.queue"})
	    public void reviceMessage(String message){
	        System.out.println("daunxin接收到了的订单信息是："+message);
	    }
}
